package com.lxblyw.service;

import java.util.List;

import com.lxblyw.dao.FilesDao;
import com.lxblyw.entity.Files;

public class FilesService {
	FilesDao filesDao = new FilesDao();
	
	public List<Files> findAll(String fileTypeId) {
		return filesDao.findAll(fileTypeId);
	}

	public void save(Files files) {
		filesDao.save(files);
	}

	public void deleteFilesById(String filesId) {
		filesDao.deleteFilesById(filesId);
		
	}

	public Files findFilesById(String filesId) {
		return filesDao.findFilesById(filesId);
	}

	public int countFilesById(String id) {
		return filesDao.countFilesById(id);
	}

	public boolean findIsHave(String fileName) {
		return filesDao.findIsHave(fileName);
	}




}
